package ms.zuul.filter;

/**
 * Project Name: ms
 * File Name: MsSendErrorFilter
 * Package Name: ms.zuul.filter
 * Date: 2018/5/8  14:39
 * Copyright (c) 2018, tianyul All Rights Reserved.
 * 响应码
 */
public enum ResponseCode {
    // 成功
    SUCCESS("100000", "成功"),
    // 登录信息过期
    TOKEN_OVERDUE("100001", "登录信息失效"),
    // 权限不足
    PERMISSION_DENIED("100002", "权限不足"),
    // 系统异常
    SYSTEM_EXCEPTION("100007", "系统异常");

    /**
     * 响应码
     */
    private String code;
    /**
     * 响应信息
     */
    private String msg;

    /**
     * 构造器
     *
     * @param code 响应码
     * @param msg  响应信息
     */
    private ResponseCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
